<%--
  Created by IntelliJ IDEA.
  User: shugen
  Date: 2017/1/16
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <title>图片</title>
    <base href="<%=basePath%>">
    <script src="js/jquery-1.8.2.js"></script>
    <%--<link rel="stylesheet" type="text/css" href="resourse/plugins/file/html5uploader.css"/>
    <script type="text/javascript" src="resourse/plugins/file/jquery.html5uploader.js"></script>--%>
    <script src="resourse/js/fileinput/fileinput.min.js"></script>
    <script src="js/ajaxfileupload.js"></script>
</head>
<%--<script type="text/javascript">
    $(function(){
        $('#upload').html5uploader({
            auto:false,
            multi:true,
            removeTimeout:9999999,
            url:'upload.php',
            onUploadStart:function(){
                alert('开始上传');
            },
            onInit:function(){
              //  alert('初始化');
            },
            onUploadComplete:function(){
                alert('上传完成');
            }
        });
    });
</script>--%>
<body>
<%--<div id="upload"></div>--%>


<div id="imageUpload">
    <input type="file" name="file" id="qrcodepath" class="projectfile" value="${deal.image}"/>
</div>
</body>

<script>

    $(function(){

        $("#qrcodepath").fileinput({
            uploadUrl: "", //上传的地址
            allowedFileExtensions : ['jpg', 'png','gif'],//接收的文件后缀
            showUpload: false, //是否显示上传按钮
            showCaption: false,//是否显示标题
            showPreview : true,//是否显示预览
            dropZoneEnabled: false,//是否显示拖拽区域
            maxFileSize: 200,
            browseClass: "btn btn-primary", //按钮样式
            //initialPreview : [ "<img src='" + imageurl + "' class=''>" ]

        });
    });

</script>
</html>
